let app = getApp()
var stylecss = require('../utils/stylecss.js');
Component({
    properties: {
      list: {
        type: Array,
        observer: function(newVal, oldVal) {
          this.updateOrdernav()
        }
      },
      styleType:{
        type:String
      },
      page_type:{
        type:String
      },
       mineTitleColor: {
            type: String
        },
        mineListColor: {
            type: String
        },
        mineListBorderColor: {
            type: String
        },
        mineInfoShow: {
            type: Boolean
        }
      },
      data:{
   
      },
    lifetimes: {
        attached: function () {
         
         }
      },
    methods: {
      writeinput:function(e){
        var name=e.currentTarget.dataset.name
        if(name=='receiverName'){
            wx.setStorageSync('receiverName',e.detail.value)
        }
        if(name=='receiverPhone'){
          wx.setStorageSync('receiverPhone',e.detail.value)
       }
      },
      updateOrdernav:function(){
      },
      lookpage:function(e){
        var index=e.currentTarget.dataset.index;
        stylecss.jumpurl(this.data.list[index].link);
      }
    }
});
